/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.dao.hibernate;

import com.click.app.dao.ProductTypeDao;
import com.click.app.model.Product;
import com.click.app.model.ProductType;
import java.util.List;

/**
 *
 * @author arnold
 */
public class ProductTypeDaoHibernate extends GenericDaoHibernate<ProductType, Long> implements ProductTypeDao {
    public ProductTypeDaoHibernate() {
        super(ProductType.class);
    }

        public List<ProductType> findProductTypeByProduct(Product product) {
       List listProductTypes = getHibernateTemplate().find("from ProductType where product=?", product);
       return listProductTypes;
    }

}
